<template>
  <div>
    <div style="text-align: right">
      <van-row>
        <van-col span="0"></van-col>
        <van-col span="24">
          <headers/>
        </van-col>
      </van-row>
    </div>
    <div>
      <van-row>
        <van-col span="4">
          <left1/>
        </van-col>
        <van-col span="4">
          <van-row>
            <van-col span="24">组织名称:<input type="text" placeholder="请输入组织名称"></van-col>
            <van-col span="24">正在更新......</van-col>
          </van-row>
          <van-uploader :after-read="upload">
            导入
          </van-uploader>
        </van-col>
      </van-row>
    </div>

  </div>

</template>

<script>
import axios from '../http/axios'
import headers from "@/components/comm/headers";
import left1 from "@/components/comm/left1";

export default {
  components: {
    'headers': headers,
    'left1': left1
  },
  methods: {
    upload(file) {
      let formData = new FormData()
      formData.append('file', file.file)
      console.log(1111111111111)
      // this.axios("http://localhost:5000/upload/","post")
      this.axios({url: 'http://127.0.0.1:5000/upload', method: 'post', data: formData})
          .then(res => {
            console.log(res)
          })
    }
  },
  mounted() {
  }
};
</script>

<style scoped>

</style>
